import request from '@/utils/request'

// 查询上车记录表列表
export function listIntocarrecord(query) {
  return request({
    url: '/bus/intocarrecord/list',
    method: 'get',
    params: query
  })
}

// 查询上车记录表详细
export function getIntocarrecord(recordId) {
  return request({
    url: '/bus/intocarrecord/' + recordId,
    method: 'get'
  })
}

// 新增上车记录表
export function addIntocarrecord(data) {
  return request({
    url: '/bus/intocarrecord',
    method: 'post',
    data: data
  })
}

// 修改上车记录表
export function updateIntocarrecord(data) {
  return request({
    url: '/bus/intocarrecord',
    method: 'put',
    data: data
  })
}

// 删除上车记录表
export function delIntocarrecord(recordId) {
  return request({
    url: '/bus/intocarrecord/' + recordId,
    method: 'delete'
  })
}

// 导出上车记录表
export function exportIntocarrecord(query) {
  return request({
    url: '/bus/intocarrecord/export',
    method: 'get',
    params: query
  })
}